//
// Created by 赵李言 on 2022/4/11.
//

#include <iostream>
#include <algorithm>
#include <vector>
#include <deque>
#include <string>
using namespace std;
using ll =long long;
int cache = -1;
std::deque<int> hs;
void flush_cache(int x){
    int start = hs.back();
    for(;;start++){
        string str = std::to_string(start);
        string back =str;
        back.reserve();
        if (back == str){
            cache++;
            hs.push_back(start);
        }
    }
    for (; cache <= x; ++cache) {

    }
}
int main(){

}